package com.ins.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 收益记录 实体类。
 *
 * @author ins
 * @since 2024-05-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "app_revenue")
public class AppRevenue extends BaseEntity<AppRevenue> implements Serializable {
    @Serial
    private static final long serialVersionUID = 207385437572821051L;
    /**
     * 用户id
     */
    @Column(value = "user_id")
    private Long userId;

    /**
     * 收入金额
     */
    @Column(value = "price")
    private BigDecimal price;

    private String title;

    /**
     * 收入时间
     */
    @Column(value = "times")
    private LocalDateTime times;


}
